package com.ruoyi.dl.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 信息对象 dl_information
 * 
 * @author ruoyi
 * @date 2020-12-28
 */
public class DlInformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 发单id */
    @Excel(name = "发单id")
    private Integer ordersGoodsId;

    /** 发信息人id */
    @Excel(name = "发信息人id")
    private Integer userId;

    /** 消息状态（0：未读，1：已读） */
    @Excel(name = "消息状态", readConverterExp = "0=：未读，1：已读")
    private Integer type;

    private DlUser dlUser;

    private DlOrdersGoods ordersGoods;

    public DlOrdersGoods getOrdersGoods() {
        return ordersGoods;
    }

    public void setOrdersGoods(DlOrdersGoods ordersGoods) {
        this.ordersGoods = ordersGoods;
    }

    public DlUser getDlUser() {
        return dlUser;
    }

    public void setDlUser(DlUser dlUser) {
        this.dlUser = dlUser;
    }

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setOrdersGoodsId(Integer ordersGoodsId) 
    {
        this.ordersGoodsId = ordersGoodsId;
    }

    public Integer getOrdersGoodsId() 
    {
        return ordersGoodsId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ordersGoodsId", getOrdersGoodsId())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("type", getType())
            .append("remark", getRemark())
            .toString();
    }
}
